package guibuilder;

import java.awt.Font;
import java.awt.Graphics;
import java.awt.geom.Rectangle2D;

public class Edge {
        private GraphNode nodeA, nodeB;
        double weight;
        private int x1,x2,y2,y1;
        
        public Edge(GraphNode pNodeA, GraphNode pNodeB, double pWeight) {
            nodeA = pNodeA;
            nodeB = pNodeB;
            weight = pWeight;
        }
        
        public GraphNode getNodeA() {
            return nodeA;
        }
        
        public GraphNode getNodeB() {
            return nodeB;
        }
        public void setcoordinates(int px1, int px2, int py1, int py2){
        	x1 = px1;
        	x2 = px2;
        	y1 = py1;
        	y2 = py2;
        }
        public int getx1coordinates()
        {
        	return x1;
        }
        public int getx2coordinates()
        {
        	return x2;
        }
        public int gety1coordinates()
        {
        	return y1;
        }
        public int gety2coordinates()
        {
        	return y2;
        }
        
        public double getWeight() {
            return weight;
        }

        public void setWeight(double pWeight) {
            weight = pWeight;
        }
        
        
    }